﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.data {
    import net.wooga.pets.events.*;
    import net.wooga.pets.models.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;

    public class SendLetterStateCommand extends Command {

        public var event:InfoEvent;
        public var letterModel:LetterModel;

        override public function execute():void{
            this.letterModel.readLetter(this.event.id);
            var _local1:RequestEvent = new RequestEvent(EventConstants.SEND_REQUEST);
            _local1.addRequest("read_letter", {id:this.event.id});
            dispatch(_local1);
        }

    }
}//package net.wooga.pets.controllers.data 
